# -*- coding: UTF-8 -*-
from pydantic import BaseModel, Field


class StatusCode(BaseModel):
    # 其实应该更加细分
    success: str = Field(default="0000", description="响应成功")
    timeout: str = Field(default="5555", description="响应超时")
    fail: str = Field(default="9999", description="响应失败")


class ReturnFlag(BaseModel):
    msg: str = Field(default="success", description="返回执行的状态提示信息，用于日志")
    flag: bool = Field(..., description="返回执行的状态用于接下来是否继续执行的判断")